package com.lpj.base.id.generator.controller;

import com.robert.vesta.service.intf.IdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LiPengJu
 * @date: 2020/5/8
 */
@RestController
public class ExampleController {
    @Autowired
    private IdService idService;

    @GetMapping("/gen")
    public ResponseEntity<Long> gen() {
        return ResponseEntity.ok(idService.genId());
    }
}
